﻿@model IEnumerable<FloodFree.Common.State>

@{
    ViewBag.Title = @Resources.Resource.AdminMenuStates;
    Layout = "~/Areas/Admin/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>@Resources.Resource.AdminMenuStates</h2>

@{
    Html.RenderPartial("_ValidationSummary", ViewData.ModelState);
}

<p>
    @Html.ActionLink(@Resources.Resource.AdminAddState, "Create")
</p>


<table class="table table-bordered">
    <tr>
        <th>
            @Resources.Resource.Name
        </th>

        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>

        <td>
            @Html.ActionLink(@Resources.Resource.Edit, "Edit", new { id=item.Id }) |
            @Html.ActionLink(@Resources.Resource.Delete, "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>